package model {
	import org.puremvc.as3.multicore.patterns.proxy.Proxy;	
	
	/**
	 * @author Darshan Sawardekar
	 */
	public class FlashVarsProxy extends Proxy {
		
		static public const NAME:String = "FlashVarsProxy";
		
		public function FlashVarsProxy(parameters:Object) {
			super(NAME);
			
			setData(parameters);
		}
		
		public function get params():Object {
			return data;
		}
		
		public function getParam(name:String):Object {
			return params[name];
		}
		
		public function setDefault(name:String, value:Object):void {
			if (getParam(name) == null) {
				params[name] = value;
			}
		}
		
	}
}
